<%@ Page Language="C#" MasterPageFile="~/MasterPage/BaseLine.Master" AutoEventWireup="true"
  Codebehind="ViewTransaction.aspx.cs" Inherits="WebRobot.Pages.ViewTransaction"
  Title="::Web Robot:Review Data::" %>

<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxMenu" TagPrefix="dxm" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxPanel" TagPrefix="dxp" %>
<%@ Register Assembly="DevExpress.Web.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxPopupControl" TagPrefix="dxpc" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v9.1, Version=9.1.4.0, Culture=neutral, PublicKeyToken=5377c8e3b72b4073"
  Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">

  <script type="text/javascript">
    function gvViewTran_SelectionChanged(s,e) {
    
        document.getElementById("selCount").innerHTML = gvViewTran.GetSelectedRowCount();
    }

    
     jQuery(document).ready(function(){
      jQuery('#aMenuViewTran').attr('class', 'active');
    });
  </script>

  <div class="heading">
    Search Imported Transaction
  </div>
  <div style="margin: 0 10px 0 0;">
    <span id="lbSearch" runat="server" style="color: Blue"></span>
  </div>
  <div style="margin: 0 10px 0 0;">
    <span style="color: #808080">From: </span>
    <div style="margin: -20px 0 0 50px">
      <dxe:ASPxDateEdit ID="dateFrom" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
        CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" ShowShadow="False" Width="130px">
        <ValidationSettings>
          <ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" Width="14px" />
          <ErrorFrameStyle ImageSpacing="4px">
            <ErrorTextPaddings PaddingLeft="4px" />
          </ErrorFrameStyle>
        </ValidationSettings>
        <DropDownButton>
          <Image Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png" UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
            UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" UrlPressed="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
            Width="9px" />
        </DropDownButton>
        <CalendarProperties>
          <HeaderStyle Spacing="1px" />
          <FooterStyle Spacing="17px" />
        </CalendarProperties>
      </dxe:ASPxDateEdit>
    </div>
  </div>
  <div style="margin: 10px 0 0 0">
    <span style="color: #808080">To: </span>
    <div style="margin: -20px 0 0 50px">
      <dxe:ASPxDateEdit ID="dateTo" runat="server" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
        CssPostfix="Aqua" ImageFolder="~/App_Themes/Aqua/{0}/" ShowShadow="False" Width="130px">
        <ValidationSettings>
          <ErrorImage Height="14px" Url="~/App_Themes/Aqua/Editors/edtError.png" Width="14px" />
          <ErrorFrameStyle ImageSpacing="4px">
            <ErrorTextPaddings PaddingLeft="4px" />
          </ErrorFrameStyle>
        </ValidationSettings>
        <DropDownButton>
          <Image Height="7px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png" UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
            UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" UrlPressed="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png"
            Width="9px" />
        </DropDownButton>
        <CalendarProperties>
          <HeaderStyle Spacing="1px" />
          <FooterStyle Spacing="17px" />
        </CalendarProperties>
      </dxe:ASPxDateEdit>
    </div>
  </div>
  <div style="margin: 10px 0 0 0;">
    <dxe:ASPxButton ID="btnSearch" runat="server" Text="Search" CssFilePath="~/App_Themes/Aqua/{0}/styles.css"
      CssPostfix="Aqua" OnClick="btnSearch_Click" AutoPostBack="False">
    </dxe:ASPxButton>
  </div>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="server">
  <div class="heading">
    Imported Transaction
  </div>
  <div>
    <span id="lbStatus" runat="server" style="color: Red"></span>
  </div>
  <br />
  <div style="float: left; margin: 0 0 0 2px;">
    <dxe:ASPxButton ID="btnCheckRule" runat="server" Text="Check rule" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" OnClick="btnCheckRule_Click"
      Width="81px" Enabled="False" ClientSideEvents-Click="gvViewTran_SelectionChanged">
    </dxe:ASPxButton>
  </div>
  <div style="float: left; margin: 0 0 0 10px;">
    <dxe:ASPxButton ID="btnCheckAll" runat="server" Text="Check All" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" Width="81px" OnClick="btnCheckAll_Click"
      Enabled="False">
    </dxe:ASPxButton>
  </div>
  <div style="float: left; margin: 0 0 0 10px;">
    <dxe:ASPxButton ID="btnUnCheckALL" runat="server" Text="UnCheck All" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" Width="88px" Enabled="False"
      OnClick="btnUnCheckALL_Click">
    </dxe:ASPxButton>
  </div>
  <div style="float: left; margin: 0 0 0 10px;">
    <dxe:ASPxButton ID="btnSubmit" runat="server" Text="Submit" AutoPostBack="False"
      CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua" BackColor="White"
      Enabled="False" OnClick="btnSubmit_Click">
    </dxe:ASPxButton>
  </div>
  <table>
    <tr>
      <td align="center" colspan="2" style="width: 825px">
        <dxwgv:ASPxGridView ID="gvViewTran" ClientInstanceName="gvViewTran" runat="server"
          AutoGenerateColumns="False" CssFilePath="~/App_Themes/Aqua/{0}/styles.css" CssPostfix="Aqua"
          Settings-ShowHorizontalScrollBar="true" Width="825px" KeyFieldName="ID" OnHtmlRowPrepared="gvViewTran_HtmlRowPrepared"
          ClientSideEvents-Init="gvViewTran_SelectionChanged" OnPageIndexChanged="gvViewTran_PageIndexChanged">
          <Styles CssPostfix="Aqua" CssFilePath="~/App_Themes/Aqua/{0}/styles.css">
            <AlternatingRow Enabled="False" BackColor="LightBlue">
            </AlternatingRow>
            <SelectedRow BackColor="#E0E0E0">
            </SelectedRow>
          </Styles>
          <SettingsLoadingPanel Text=""></SettingsLoadingPanel>
          <SettingsPager PageSize="20">
            <AllButton>
              <Image Height="19px" Width="27px"></Image>
            </AllButton>
            <FirstPageButton>
              <Image Height="19px" Width="23px"></Image>
            </FirstPageButton>
            <LastPageButton>
              <Image Height="19px" Width="23px"></Image>
            </LastPageButton>
            <NextPageButton>
              <Image Height="19px" Width="19px"></Image>
            </NextPageButton>
            <PrevPageButton>
              <Image Height="19px" Width="19px"></Image>
            </PrevPageButton>
          </SettingsPager>
          <Images ImageFolder="~/App_Themes/Aqua/{0}/">
            <CollapsedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvCollapsedButton.png">
            </CollapsedButton>
            <ExpandedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvExpandedButton.png">
            </ExpandedButton>
            <DetailCollapsedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvDetailCollapsedButton.png">
            </DetailCollapsedButton>
            <DetailExpandedButton Height="15px" Width="15px" Url="~/App_Themes/Aqua/GridView/gvDetailExpandedButton.png">
            </DetailExpandedButton>
            <HeaderFilter Height="19px" Width="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilter.png">
            </HeaderFilter>
            <HeaderActiveFilter Height="19px" Width="19px" Url="~/App_Themes/Aqua/GridView/gvHeaderFilterActive.png">
            </HeaderActiveFilter>
            <HeaderSortDown Height="5px" Width="7px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortDown.png">
            </HeaderSortDown>
            <HeaderSortUp Height="5px" Width="7px" Url="~/App_Themes/Aqua/GridView/gvHeaderSortUp.png">
            </HeaderSortUp>
            <FilterRowButton Height="13px" Width="13px"></FilterRowButton>
            <WindowResizer Height="13px" Width="13px" Url="~/App_Themes/Aqua/GridView/WindowResizer.png">
            </WindowResizer>
          </Images>
          <Columns>
            <dxwgv:GridViewCommandColumn ShowSelectCheckbox="True" VisibleIndex="0" Name="Check"
              Visible="False">
            </dxwgv:GridViewCommandColumn>
            <dxwgv:GridViewDataTextColumn FieldName="ID" Name="id" Visible="False" VisibleIndex="0">
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataDateColumn FieldName="ValueDate" Name="valueDate" Caption="Value Date"
              VisibleIndex="0">
              <PropertiesDateEdit DisplayFormatString="dd/MM/yyyy">
              </PropertiesDateEdit>
              <EditFormCaptionStyle HorizontalAlign="Left">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataDateColumn Caption="Created Date" FieldName="CreatedDate" Name="CreatedDate"
              VisibleIndex="1">
            </dxwgv:GridViewDataDateColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BuyCurrency" Name="buyCCY" Caption="Buy Currency"
              VisibleIndex="2">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Center">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="BuyAmount" Name="buyAmount" Caption="Buy Amount"
              VisibleIndex="3">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CusRate" Name="customerRate" Caption="Customer Rate"
              VisibleIndex="4">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="SellCurrency" Name="sellCurrency" Caption="Sell Currency"
              VisibleIndex="5">
              <EditCellStyle HorizontalAlign="Center">
              </EditCellStyle>
              <EditFormCaptionStyle HorizontalAlign="Center">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
              <CellStyle HorizontalAlign="Center">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Center">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="SellAmount" Name="sellAmount" Caption="Sell Amount"
              VisibleIndex="6">
              <PropertiesTextEdit DisplayFormatString="N2">
              </PropertiesTextEdit>
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="CreatedBy" Name="createdBy" Caption="Created By"
              VisibleIndex="7">
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Right"></HeaderStyle>
              <CellStyle HorizontalAlign="Right">
              </CellStyle>
              <FooterCellStyle HorizontalAlign="Right">
              </FooterCellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataTextColumn FieldName="Command" Name="Command" Caption="Command Reject"
              VisibleIndex="8">
              <EditFormCaptionStyle HorizontalAlign="Right">
              </EditFormCaptionStyle>
              <HeaderStyle HorizontalAlign="Left"></HeaderStyle>
              <CellStyle HorizontalAlign="Left">
              </CellStyle>
            </dxwgv:GridViewDataTextColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule USD &gt; 20k" FieldName="Rule2" Name="rule2"
              VisibleIndex="11" ReadOnly="True" Visible="False">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule New Currency" FieldName="Rule3" Name="rule3"
              VisibleIndex="13" ReadOnly="True" Visible="False">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule Floor&amp;Ceiling USN-VND" FieldName="Rule4"
              Name="rule4" VisibleIndex="11" ReadOnly="True" Visible="False">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
            <dxwgv:GridViewDataCheckColumn Caption="Rule Internal &amp; Board Rate" FieldName="Rule5"
              Name="rule5" VisibleIndex="11" ReadOnly="True" Visible="False">
              <PropertiesCheckEdit ValueChecked="0" ValueType="System.Int32" ValueUnchecked="1">
              </PropertiesCheckEdit>
            </dxwgv:GridViewDataCheckColumn>
          </Columns>
          <Settings ShowFilterRow="True" ShowHorizontalScrollBar="True"></Settings>
          <StylesEditors>
            <ProgressBar Height="25px">
            </ProgressBar>
          </StylesEditors>
          <ImagesEditors>
            <CalendarFastNavPrevYear Height="19px" Width="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNPrevYear.png">
            </CalendarFastNavPrevYear>
            <CalendarFastNavNextYear Height="19px" Width="19px" Url="~/App_Themes/Aqua/Editors/edtCalendarFNNextYear.png">
            </CalendarFastNavNextYear>
            <DropDownEditDropDown UrlDisabled="~/App_Themes/Aqua/Editors/edtDropDownDisabled.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtDropDownHottracked.png" Height="7px"
              Width="9px" Url="~/App_Themes/Aqua/Editors/edtDropDown.png"></DropDownEditDropDown>
            <SpinEditIncrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditIncrementDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditIncrementHottrackedImage.png"
              Height="6px" Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditIncrementImage.png">
            </SpinEditIncrement>
            <SpinEditDecrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditDecrementDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditDecrementHottrackedImage.png"
              Height="7px" Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditDecrementImage.png">
            </SpinEditDecrement>
            <SpinEditLargeIncrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncHottrackedImage.png" Height="9px"
              Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeIncImage.png"></SpinEditLargeIncrement>
            <SpinEditLargeDecrement UrlDisabled="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecDisabledImage.png"
              UrlHottracked="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png"
              UrlPressed="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecHottrackedImage.png" Height="9px"
              Width="7px" Url="~/App_Themes/Aqua/Editors/edtSpinEditLargeDecImage.png"></SpinEditLargeDecrement>
          </ImagesEditors>
          <ClientSideEvents SelectionChanged="gvViewTran_SelectionChanged" Init="gvViewTran_SelectionChanged" />
        </dxwgv:ASPxGridView>
      </td>
    </tr>
  </table>
  <div style="float: left; margin: 0 0 0 0">
    <span>Pass rule No: </span><span id="PassRuleNo" runat="server" style="color: Maroon">
      0 </span>
  </div>
  <div style="float: left; margin: 0 0 0 10px">
    <span>Selection row No: </span><span id="selCount" style="color: Maroon"></span>
  </div>
</asp:Content>
